package com.example.mycomposelesson

import android.app.Application
import com.example.mycomposelesson.util.LogUtil
import mu.KotlinLogging

class MyApplication: Application() {
    companion object{
        val logger=KotlinLogging.logger{"MainLogger"}
    }
    private val logger by lazy {
        KotlinLogging.logger(this.javaClass.simpleName)
    }
    override fun onCreate() {
        super.onCreate()
        LogUtil.configLog()
        logger.debug { "程序已启动,程序日志配置！" }
    }
}